# ser/ser/number_processor.py

class NumberProcessor:
    def __init__(self):
        self.numbers = []

    def getNumbers(self, nums):
        self.numbers = nums

    def getSum(self):
        sum = 0
        for number in self.numbers:
            sum += number
        return sum
    
    def getProduct(self):
        product = 1
        for number in self.numbers:
            if not number:
                product = 0
                break
            else :
                product *= number
        return product
